export const isExpiredToUpdatedAtISOS = (
  current: string,
  record: string,
  expire = 7200,
  offset = 0,
) => {
  // 将更新时间转换为日期对象
  const updatedAtDate = new Date(record);
  // 计算过期时间戳
  const expiredTimestamp =
    Date.parse(updatedAtDate as any) + expire * 1000 - offset * 1000;
  // console.log('current', current);
  // console.log('Date.parse(current)', Date.parse(current));
  // console.log('expiredTimestamp', expiredTimestamp);
  // 比较当前时间与过期时间戳
  return Date.parse(current) > expiredTimestamp;
};
